<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" href="Estilos/estiloLockupCadeiras.css">
<script src="js/jquery/jquery-1.5.1.js"></script>
<script src="js/jquery/ui/jquery.ui.core.js"></script>
<script src="js/jquery/ui/jquery.ui.widget.js"></script>
<script src="js/jquery/ui/jquery.ui.datepicker.js"></script>
<script type="text/javascript" src="js/acaoBotao.js"></script>

<title>Melhor Cinema-Lugares</title>
</head>
<body>
<jsp:useBean id="beanSala" class="Bean.BeanSala" scope="request" />
<jsp:useBean id="beanIngresso" class="Bean.BeanIngresso" scope="session" />
<div id="cinema">
<div id="tela"><span>Tela</span></div>

<form href="#"><input type="hidden"
	value="${beanIngresso.sessao.sala.cod_sala}" id="cod_sala" /> <input
	type="hidden" value="${beanIngresso.sessao.cod_sessao}" id="cod_sessao" />
<input type="hidden" value="${beanIngresso.data_sessao}" id="data" /> <input
	type="hidden" value="${beanIngresso.quantidade}" id="quantidade" /> <input
	type="submit" value="Confimar" onclick=
	botaoFecharLockupLugares();;
/>

</form>



<c:forEach var="listaFila" items="${beanSala.cadeiras}">
	<div class="fila"><c:forEach var="listaCadeiras"
		items="${listaFila}" varStatus="status">
		<c:if test="${status.count != 6}">
			<a href="#" class="labelCadeira" id="${listaCadeiras.codigoFila}"
				onclick=
	reservarCadeira(this.id);
>
			<div id="${listaCadeiras.codigoFila}"
				<c:if test="${listaCadeiras.boReservada}">
		class=" cadeiras reservadas"
		</c:if>
				<c:if test="${listaCadeiras.boVendida }">
		class="cadeiras vendidas"
		</c:if>
				<c:if test="${!listaCadeiras.boReservada }">
		class="cadeiras"
		</c:if>><span
				class="labelCadeira">${listaCadeiras.codigoFila}</span></div>
			</a>
		</c:if>

		<c:if test="${status.count == 6}">
			<a href="#" class="labelCadeira" id="${listaCadeiras.codigoFila}"
				onclick=
	reservarCadeira(this.id);
>

			<div id="${listaCadeiras.codigoFila}"
				<c:if test="${listaCadeiras.boReservada}">
		class=" cadeiras corredor  reservadas" 
		</c:if>
				<c:if test="${listaCadeiras.boVendida }">
		class="cadeiras corredor vendidas"
		</c:if>
				<c:if test="${!listaCadeiras.boReservada}">
		class="cadeiras corredor"
		</c:if>><span>${listaCadeiras.codigoFila}</span></div>
			</a>
		</c:if>

	</c:forEach></div>

</c:forEach></div>

</body>
</html>